const MyPromise = require('../lib/promise.simple').MyPromise;

console.log('1')
const p1 = new MyPromise((resolve) => {
    setTimeout(() => {
        resolve('done')
    }, 2000)
})
p1.then(result => {
    console.log(result)
})
console.log('2')